home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / var / lib / dpkg / info / usplash.preinst < prev    next >
Encoding:
Text File  |  2009-03-09  |  371 b   |  13 lines

  1. #!/bin/sh -e
  2.  
  3. if [ "$1" = install ] || [ "$1" = upgrade ]; then
  4.     if dpkg --compare-versions "$2" lt-nl "0.5.24"; then
  5.         # migrate old rc symlinks
  6.         for l in 0 1 6; do
  7.             if [ -L /etc/rc$l.d/K01usplash ] && ! [ -e /etc/rc$l.d/K02usplash ]; then
  8.                 mv /etc/rc$l.d/K01usplash /etc/rc$l.d/K02usplash
  9.             fi
  10.         done
  11.     fi
  12. fi
  13.